package com.smkj.kaoqin.modules.teacher.pojo.db;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 请假单表
 * </p>
 *
 * @author yztyear
 * @since 2024-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("leave_request")
@Schema(description = "请假单表")
public class LeaveRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "关联学生id")
    private Integer studentId;

    @Schema(description = "请假原因")
    private String reason;

    @Schema(description = "请假状态(0.待审批，1.已通过，2.已驳回)")
    private Integer status;

    @Schema(description = "关联用户表id,谁审批了请假")
    private Integer approvedBy;

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;


}
